//
//  CategoryListWaterflowLayout.h
//  FlyGift
//
//  Created by lanou3g on 15/7/16.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CategoryListWaterflowLayout;


@protocol CategoryListWaterflowLayoutDelegate <NSObject>

- (CGFloat)categoryListWaterflowLayout:(CategoryListWaterflowLayout *)waterflowLayout heightForWidth:(CGFloat)width atIndexpath:(NSIndexPath *)indexPath;

@end




@interface CategoryListWaterflowLayout : UICollectionViewLayout
@property(nonatomic, assign)UIEdgeInsets sectionInset;
/***  每一列的间距*/
@property(nonatomic, assign)CGFloat columnMagin;
/***  每一行的间距*/
@property(nonatomic, assign)CGFloat rowMagin;
/***  显示多少列 */
@property(nonatomic, assign)int columnsCount;
@property(nonatomic, weak)id<CategoryListWaterflowLayoutDelegate>delegate;
@end
